<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of LogicalDeleteBehavior
 *
 * @author kukisz
 */
class LogicalDeleteBehavior extends CActiveRecordBehavior {


    public function beforeFind($event) {
        $this->owner->getDbCriteria()->mergeWith(array('condition' => 'publikus=1'));
    }

}

?>